<?php
include "dbc.php";
$email=$_GET['value'];
if(!$email){
    $errors = "E-mail is not defined!";
    }
if($email)
{
    $checkemail = "/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i";
	if(!preg_match($checkemail, $email))
	{
		$errors = "E-mail is not valid, must be name@server.tld!";
	}
}
echo $errors;
mysql_close();
?>